package com.yicong.ants.bean.gas;

import java.util.List;

/**
 * @author cch
 * @version 2020/6/17
 */
public class GasDetailBean {

    /**
     * gas : {"id":"CF000126221","name":"123","type":1,"status":1,"logo_small":"https://static.czb365.com/1586231028309.jpg?x-oss-process=image/resize,m_lfit,h_200,w_200/format,png","logo_big":"https://static.czb365.com/1586231028169.jpg?x-oss-process=image/resize,m_lfit,h_420,w_630/format,png","address":"骄傲肯德基安居客贷款","longitude":"116.6602450000","latitude":"39.8637830000","can_invoice":1,"company_id":"100247","update_time":"1970-01-01 08:33:40"}
     * oil_name : 92#
     * prices : [{"oilNo":92,"oilName":"92#","oilType":1,"priceYfq":"2.87","priceGun":"2.87","priceOfficial":"2.98","gunNos":[{"gunNo":3}],"select":"selected"}]
     * oilNo : 92
     * mobile : 17712345600
     * user_longitude : 113.76343399
     * user_latitude : 23.04302382
     * price_partner : 2.87
     * price_gun : 2.87
     * price_office : 2.98
     * guns : [{"gunNo":3}]
     */

    private GasBean gas;
    private String oil_name;
    private int gunNo;
    private int oilNo;
    private String mobile;
    private String user_longitude;
    private String user_latitude;
    private String price_partner;
    private String price_gun;
    private String price_office;
    private List<PricesBean> prices;

    public GasDetailBean() {
    }

    public GasBean getGas() {
        return this.gas;
    }

    public String getOil_name() {
        return this.oil_name;
    }

    public int getGunNo() {
        return this.gunNo;
    }

    public int getOilNo() {
        return this.oilNo;
    }

    public String getMobile() {
        return this.mobile;
    }

    public String getUser_longitude() {
        return this.user_longitude;
    }

    public String getUser_latitude() {
        return this.user_latitude;
    }

    public String getPrice_partner() {
        return this.price_partner;
    }

    public String getPrice_gun() {
        return this.price_gun;
    }

    public String getPrice_office() {
        return this.price_office;
    }

    public List<PricesBean> getPrices() {
        return this.prices;
    }

    public void setGas(GasBean gas) {
        this.gas = gas;
    }

    public void setOil_name(String oil_name) {
        this.oil_name = oil_name;
    }

    public void setGunNo(int gunNo) {
        this.gunNo = gunNo;
    }

    public void setOilNo(int oilNo) {
        this.oilNo = oilNo;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public void setUser_longitude(String user_longitude) {
        this.user_longitude = user_longitude;
    }

    public void setUser_latitude(String user_latitude) {
        this.user_latitude = user_latitude;
    }

    public void setPrice_partner(String price_partner) {
        this.price_partner = price_partner;
    }

    public void setPrice_gun(String price_gun) {
        this.price_gun = price_gun;
    }

    public void setPrice_office(String price_office) {
        this.price_office = price_office;
    }

    public void setPrices(List<PricesBean> prices) {
        this.prices = prices;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof GasDetailBean)) return false;
        final GasDetailBean other = (GasDetailBean) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$gas = this.getGas();
        final Object other$gas = other.getGas();
        if (this$gas == null ? other$gas != null : !this$gas.equals(other$gas)) return false;
        final Object this$oil_name = this.getOil_name();
        final Object other$oil_name = other.getOil_name();
        if (this$oil_name == null ? other$oil_name != null : !this$oil_name.equals(other$oil_name))
            return false;
        if (this.getGunNo() != other.getGunNo()) return false;
        if (this.getOilNo() != other.getOilNo()) return false;
        final Object this$mobile = this.getMobile();
        final Object other$mobile = other.getMobile();
        if (this$mobile == null ? other$mobile != null : !this$mobile.equals(other$mobile))
            return false;
        final Object this$user_longitude = this.getUser_longitude();
        final Object other$user_longitude = other.getUser_longitude();
        if (this$user_longitude == null ? other$user_longitude != null : !this$user_longitude.equals(other$user_longitude))
            return false;
        final Object this$user_latitude = this.getUser_latitude();
        final Object other$user_latitude = other.getUser_latitude();
        if (this$user_latitude == null ? other$user_latitude != null : !this$user_latitude.equals(other$user_latitude))
            return false;
        final Object this$price_partner = this.getPrice_partner();
        final Object other$price_partner = other.getPrice_partner();
        if (this$price_partner == null ? other$price_partner != null : !this$price_partner.equals(other$price_partner))
            return false;
        final Object this$price_gun = this.getPrice_gun();
        final Object other$price_gun = other.getPrice_gun();
        if (this$price_gun == null ? other$price_gun != null : !this$price_gun.equals(other$price_gun))
            return false;
        final Object this$price_office = this.getPrice_office();
        final Object other$price_office = other.getPrice_office();
        if (this$price_office == null ? other$price_office != null : !this$price_office.equals(other$price_office))
            return false;
        final Object this$prices = this.getPrices();
        final Object other$prices = other.getPrices();
        if (this$prices == null ? other$prices != null : !this$prices.equals(other$prices))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof GasDetailBean;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $gas = this.getGas();
        result = result * PRIME + ($gas == null ? 43 : $gas.hashCode());
        final Object $oil_name = this.getOil_name();
        result = result * PRIME + ($oil_name == null ? 43 : $oil_name.hashCode());
        result = result * PRIME + this.getGunNo();
        result = result * PRIME + this.getOilNo();
        final Object $mobile = this.getMobile();
        result = result * PRIME + ($mobile == null ? 43 : $mobile.hashCode());
        final Object $user_longitude = this.getUser_longitude();
        result = result * PRIME + ($user_longitude == null ? 43 : $user_longitude.hashCode());
        final Object $user_latitude = this.getUser_latitude();
        result = result * PRIME + ($user_latitude == null ? 43 : $user_latitude.hashCode());
        final Object $price_partner = this.getPrice_partner();
        result = result * PRIME + ($price_partner == null ? 43 : $price_partner.hashCode());
        final Object $price_gun = this.getPrice_gun();
        result = result * PRIME + ($price_gun == null ? 43 : $price_gun.hashCode());
        final Object $price_office = this.getPrice_office();
        result = result * PRIME + ($price_office == null ? 43 : $price_office.hashCode());
        final Object $prices = this.getPrices();
        result = result * PRIME + ($prices == null ? 43 : $prices.hashCode());
        return result;
    }

    public String toString() {
        return "GasDetailBean(gas=" + this.getGas() + ", oil_name=" + this.getOil_name() + ", gunNo=" + this.getGunNo() + ", oilNo=" + this.getOilNo() + ", mobile=" + this.getMobile() + ", user_longitude=" + this.getUser_longitude() + ", user_latitude=" + this.getUser_latitude() + ", price_partner=" + this.getPrice_partner() + ", price_gun=" + this.getPrice_gun() + ", price_office=" + this.getPrice_office() + ", prices=" + this.getPrices() + ")";
    }

    public static class GasBean {
        /**
         * id : CF000126221
         * name : 123
         * type : 1
         * status : 1
         * logo_small : https://static.czb365.com/1586231028309.jpg?x-oss-process=image/resize,m_lfit,h_200,w_200/format,png
         * logo_big : https://static.czb365.com/1586231028169.jpg?x-oss-process=image/resize,m_lfit,h_420,w_630/format,png
         * address : 骄傲肯德基安居客贷款
         * longitude : 116.6602450000
         * latitude : 39.8637830000
         * can_invoice : 1
         * company_id : 100247
         * update_time : 1970-01-01 08:33:40
         */

        private String id;
        private String name;
        private int type;
        private int status;
        private String logo_small;
        private String logo_big;
        private String address;
        private String longitude;
        private String latitude;
        private int can_invoice;
        private String company_id;
        private String update_time;

        public GasBean() {
        }

        public String getId() {
            return this.id;
        }

        public String getName() {
            return this.name;
        }

        public int getType() {
            return this.type;
        }

        public int getStatus() {
            return this.status;
        }

        public String getLogo_small() {
            return this.logo_small;
        }

        public String getLogo_big() {
            return this.logo_big;
        }

        public String getAddress() {
            return this.address;
        }

        public String getLongitude() {
            return this.longitude;
        }

        public String getLatitude() {
            return this.latitude;
        }

        public int getCan_invoice() {
            return this.can_invoice;
        }

        public String getCompany_id() {
            return this.company_id;
        }

        public String getUpdate_time() {
            return this.update_time;
        }

        public void setId(String id) {
            this.id = id;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setType(int type) {
            this.type = type;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public void setLogo_small(String logo_small) {
            this.logo_small = logo_small;
        }

        public void setLogo_big(String logo_big) {
            this.logo_big = logo_big;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public void setLongitude(String longitude) {
            this.longitude = longitude;
        }

        public void setLatitude(String latitude) {
            this.latitude = latitude;
        }

        public void setCan_invoice(int can_invoice) {
            this.can_invoice = can_invoice;
        }

        public void setCompany_id(String company_id) {
            this.company_id = company_id;
        }

        public void setUpdate_time(String update_time) {
            this.update_time = update_time;
        }

        public boolean equals(final Object o) {
            if (o == this) return true;
            if (!(o instanceof GasBean)) return false;
            final GasBean other = (GasBean) o;
            if (!other.canEqual((Object) this)) return false;
            final Object this$id = this.getId();
            final Object other$id = other.getId();
            if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
            final Object this$name = this.getName();
            final Object other$name = other.getName();
            if (this$name == null ? other$name != null : !this$name.equals(other$name))
                return false;
            if (this.getType() != other.getType()) return false;
            if (this.getStatus() != other.getStatus()) return false;
            final Object this$logo_small = this.getLogo_small();
            final Object other$logo_small = other.getLogo_small();
            if (this$logo_small == null ? other$logo_small != null : !this$logo_small.equals(other$logo_small))
                return false;
            final Object this$logo_big = this.getLogo_big();
            final Object other$logo_big = other.getLogo_big();
            if (this$logo_big == null ? other$logo_big != null : !this$logo_big.equals(other$logo_big))
                return false;
            final Object this$address = this.getAddress();
            final Object other$address = other.getAddress();
            if (this$address == null ? other$address != null : !this$address.equals(other$address))
                return false;
            final Object this$longitude = this.getLongitude();
            final Object other$longitude = other.getLongitude();
            if (this$longitude == null ? other$longitude != null : !this$longitude.equals(other$longitude))
                return false;
            final Object this$latitude = this.getLatitude();
            final Object other$latitude = other.getLatitude();
            if (this$latitude == null ? other$latitude != null : !this$latitude.equals(other$latitude))
                return false;
            if (this.getCan_invoice() != other.getCan_invoice()) return false;
            final Object this$company_id = this.getCompany_id();
            final Object other$company_id = other.getCompany_id();
            if (this$company_id == null ? other$company_id != null : !this$company_id.equals(other$company_id))
                return false;
            final Object this$update_time = this.getUpdate_time();
            final Object other$update_time = other.getUpdate_time();
            if (this$update_time == null ? other$update_time != null : !this$update_time.equals(other$update_time))
                return false;
            return true;
        }

        protected boolean canEqual(final Object other) {
            return other instanceof GasBean;
        }

        public int hashCode() {
            final int PRIME = 59;
            int result = 1;
            final Object $id = this.getId();
            result = result * PRIME + ($id == null ? 43 : $id.hashCode());
            final Object $name = this.getName();
            result = result * PRIME + ($name == null ? 43 : $name.hashCode());
            result = result * PRIME + this.getType();
            result = result * PRIME + this.getStatus();
            final Object $logo_small = this.getLogo_small();
            result = result * PRIME + ($logo_small == null ? 43 : $logo_small.hashCode());
            final Object $logo_big = this.getLogo_big();
            result = result * PRIME + ($logo_big == null ? 43 : $logo_big.hashCode());
            final Object $address = this.getAddress();
            result = result * PRIME + ($address == null ? 43 : $address.hashCode());
            final Object $longitude = this.getLongitude();
            result = result * PRIME + ($longitude == null ? 43 : $longitude.hashCode());
            final Object $latitude = this.getLatitude();
            result = result * PRIME + ($latitude == null ? 43 : $latitude.hashCode());
            result = result * PRIME + this.getCan_invoice();
            final Object $company_id = this.getCompany_id();
            result = result * PRIME + ($company_id == null ? 43 : $company_id.hashCode());
            final Object $update_time = this.getUpdate_time();
            result = result * PRIME + ($update_time == null ? 43 : $update_time.hashCode());
            return result;
        }

        public String toString() {
            return "GasDetailBean.GasBean(id=" + this.getId() + ", name=" + this.getName() + ", type=" + this.getType() + ", status=" + this.getStatus() + ", logo_small=" + this.getLogo_small() + ", logo_big=" + this.getLogo_big() + ", address=" + this.getAddress() + ", longitude=" + this.getLongitude() + ", latitude=" + this.getLatitude() + ", can_invoice=" + this.getCan_invoice() + ", company_id=" + this.getCompany_id() + ", update_time=" + this.getUpdate_time() + ")";
        }
    }
    public static class PricesBean {
        /**
         * oilNo : 92
         * oilName : 92#
         * oilType : 1
         * priceYfq : 2.87
         * priceGun : 2.87
         * priceOfficial : 2.98
         * gunNos : [{"gunNo":3}]
         * select : selected
         */

        private int oilNo;
        private String oilName;
        private int oilType;
        private String priceYfq;
        private String priceGun;
        private String priceOfficial;
        private String select;
        private List<GunNosBean> gunNos;

        public PricesBean() {
        }

        public int getOilNo() {
            return this.oilNo;
        }

        public String getOilName() {
            return this.oilName;
        }

        public int getOilType() {
            return this.oilType;
        }

        public String getPriceYfq() {
            return this.priceYfq;
        }

        public String getPriceGun() {
            return this.priceGun;
        }

        public String getPriceOfficial() {
            return this.priceOfficial;
        }

        public String getSelect() {
            return this.select;
        }

        public List<GunNosBean> getGunNos() {
            return this.gunNos;
        }

        public void setOilNo(int oilNo) {
            this.oilNo = oilNo;
        }

        public void setOilName(String oilName) {
            this.oilName = oilName;
        }

        public void setOilType(int oilType) {
            this.oilType = oilType;
        }

        public void setPriceYfq(String priceYfq) {
            this.priceYfq = priceYfq;
        }

        public void setPriceGun(String priceGun) {
            this.priceGun = priceGun;
        }

        public void setPriceOfficial(String priceOfficial) {
            this.priceOfficial = priceOfficial;
        }

        public void setSelect(String select) {
            this.select = select;
        }

        public void setGunNos(List<GunNosBean> gunNos) {
            this.gunNos = gunNos;
        }

        public boolean equals(final Object o) {
            if (o == this) return true;
            if (!(o instanceof PricesBean)) return false;
            final PricesBean other = (PricesBean) o;
            if (!other.canEqual((Object) this)) return false;
            if (this.getOilNo() != other.getOilNo()) return false;
            final Object this$oilName = this.getOilName();
            final Object other$oilName = other.getOilName();
            if (this$oilName == null ? other$oilName != null : !this$oilName.equals(other$oilName))
                return false;
            if (this.getOilType() != other.getOilType()) return false;
            final Object this$priceYfq = this.getPriceYfq();
            final Object other$priceYfq = other.getPriceYfq();
            if (this$priceYfq == null ? other$priceYfq != null : !this$priceYfq.equals(other$priceYfq))
                return false;
            final Object this$priceGun = this.getPriceGun();
            final Object other$priceGun = other.getPriceGun();
            if (this$priceGun == null ? other$priceGun != null : !this$priceGun.equals(other$priceGun))
                return false;
            final Object this$priceOfficial = this.getPriceOfficial();
            final Object other$priceOfficial = other.getPriceOfficial();
            if (this$priceOfficial == null ? other$priceOfficial != null : !this$priceOfficial.equals(other$priceOfficial))
                return false;
            final Object this$select = this.getSelect();
            final Object other$select = other.getSelect();
            if (this$select == null ? other$select != null : !this$select.equals(other$select))
                return false;
            final Object this$gunNos = this.getGunNos();
            final Object other$gunNos = other.getGunNos();
            if (this$gunNos == null ? other$gunNos != null : !this$gunNos.equals(other$gunNos))
                return false;
            return true;
        }

        protected boolean canEqual(final Object other) {
            return other instanceof PricesBean;
        }

        public int hashCode() {
            final int PRIME = 59;
            int result = 1;
            result = result * PRIME + this.getOilNo();
            final Object $oilName = this.getOilName();
            result = result * PRIME + ($oilName == null ? 43 : $oilName.hashCode());
            result = result * PRIME + this.getOilType();
            final Object $priceYfq = this.getPriceYfq();
            result = result * PRIME + ($priceYfq == null ? 43 : $priceYfq.hashCode());
            final Object $priceGun = this.getPriceGun();
            result = result * PRIME + ($priceGun == null ? 43 : $priceGun.hashCode());
            final Object $priceOfficial = this.getPriceOfficial();
            result = result * PRIME + ($priceOfficial == null ? 43 : $priceOfficial.hashCode());
            final Object $select = this.getSelect();
            result = result * PRIME + ($select == null ? 43 : $select.hashCode());
            final Object $gunNos = this.getGunNos();
            result = result * PRIME + ($gunNos == null ? 43 : $gunNos.hashCode());
            return result;
        }

        public String toString() {
            return "GasDetailBean.PricesBean(oilNo=" + this.getOilNo() + ", oilName=" + this.getOilName() + ", oilType=" + this.getOilType() + ", priceYfq=" + this.getPriceYfq() + ", priceGun=" + this.getPriceGun() + ", priceOfficial=" + this.getPriceOfficial() + ", select=" + this.getSelect() + ", gunNos=" + this.getGunNos() + ")";
        }

        public static class GunNosBean {
            /**
             * gunNo : 3
             */

            private int gunNo;

            public GunNosBean() {
            }

            public int getGunNo() {
                return this.gunNo;
            }

            public void setGunNo(int gunNo) {
                this.gunNo = gunNo;
            }

            public boolean equals(final Object o) {
                if (o == this) return true;
                if (!(o instanceof GunNosBean))
                    return false;
                final GunNosBean other = (GunNosBean) o;
                if (!other.canEqual((Object) this)) return false;
                if (this.getGunNo() != other.getGunNo()) return false;
                return true;
            }

            protected boolean canEqual(final Object other) {
                return other instanceof GunNosBean;
            }

            public int hashCode() {
                final int PRIME = 59;
                int result = 1;
                result = result * PRIME + this.getGunNo();
                return result;
            }

            public String toString() {
                return "GasDetailBean.PricesBean.GunNosBean(gunNo=" + this.getGunNo() + ")";
            }
        }
    }

    public static class GunsBean {
        /**
         * gunNo : 3
         */

        private int gunNo;

        public int getGunNo() {
            return gunNo;
        }

        public void setGunNo(int gunNo) {
            this.gunNo = gunNo;
        }
    }
}
